package com.ibiaoke.boss.controller;

import com.ibiaoke.boss.service.RegisterService;
import com.ibiaoke.common.base.BaseController;
import com.ibiaoke.common.response.Res;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by biaoke on 2017/6/23.
 */
@Controller
public class WxRegisterController extends BaseController {

    @Autowired
    private RegisterService registerService;

    /**
     * 手机号码登录
     *
     * @param mobile
     * @param code
     * @param password
     * @return
     */
    @ResponseBody
    @RequestMapping("/registerByMobile")
    public Res registerByMobile(String mobile, String code, String password) {
        registerService.registerByMobile(mobile, code, password);
        return new Res();
    }
}
